package com.lingxin.gps.wap.command;

import com.pisces.core.Assert;
import com.pisces.core.BaseCommand;
import org.joda.time.DateTime;

/**
 *
 */
public class CDeviceTrackQuery extends BaseCommand {

	private String deviceCode;

	@Override
	public void init() throws Exception {
		deviceCode = getPara("deviceCode");
		Assert.notBlank(deviceCode, "设备编号不能为空");
	}

	@Override
	public void doCommand() throws Exception {
		data.put("deviceCode", deviceCode);
		DateTime now = DateTime.now();
		data.put("startTime", now.minusDays(90).toString("yyyy-MM-dd HH:mm"));
		data.put("endTime", now.toString("yyyy-MM-dd HH:mm"));
		data.put("speed", 20);

	}

}
